package main

import (
	"fmt"
	_ "gfrest/web/boot"

	"github.com/getsentry/sentry-go"
	"github.com/gogf/gf/frame/g"
)

func init() {
	err := sentry.Init(sentry.ClientOptions{
		Dsn: g.Config().GetString("SENTRY_DSN"),
	})

	if err != nil {
		fmt.Printf("Sentry initialization failed: %v\n", err)
	}
}
